define(["Zepto", 
        "underscore", 
        "Backbone", 
        "views/homepage"
], function($, _, Backbone, HomePage) {

    var AppRouter = Backbone.Router.extend({

        routes: {
            "": "showHomePage"
        },

        initialize: function() {
            this.firstPage = true;
        },

        showHomePage: function() {
            var page = new HomePage();
            this.changePage(page);
        },

        changePage: function(page) {
           // $(page.el).attr('data-role', 'page');
            page.render();
            $('body').append($(page.el));
        }

    });

    return AppRouter;

});